﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Text;
using WebApiV2.Data.Entity;

namespace WebApiV2.Data
{
    public class Admin3400DbContext:DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            var connectionString = "seriver=.;database=Admin3400DbContext;uid=sa;pwd=123456";
            optionsBuilder.UseSqlServer(connectionString);
        }
        public DbSet<Users> users { get; set; }
        public DbSet<Roles> roles { get; set; }
        public DbSet<Logs> logs { get; set; }
    }
}
